/* Hero Section */
.hero {
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 120px 10% 40px;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.greeting {
    font-family: 'Fira Code', monospace;
    color: var(--accent-blue);
    font-size: 1.2rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.role {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-family: 'Fira Code', monospace;
    min-height: 50px;
}

/* Typing Effect Cursor */
.typing-text::after {
    content: '|';
    color: var(--accent-red);
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.summary {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.8s both;
}

/* Glitch Effect on Brand Name */
.glitch {
    position: relative;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-red);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-blue);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 44px, 0); }
    10% { clip: rect(50px, 9999px, 20px, 0); }
    20% { clip: rect(80px, 9999px, 80px, 0); }
    30% { clip: rect(10px, 9999px, 10px, 0); }
    40% { clip: rect(30px, 9999px, 50px, 0); }
    50% { clip: rect(60px, 9999px, 90px, 0); }
    100% { clip: rect(60px, 9999px, 90px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    10% { clip: rect(3px, 9999px, 20px, 0); }
    20% { clip: rect(25px, 9999px, 60px, 0); }
    30% { clip: rect(80px, 9999px, 5px, 0); }
    40% { clip: rect(15px, 9999px, 80px, 0); }
    50% { clip: rect(40px, 9999px, 30px, 0); }
    100% { clip: rect(40px, 9999px, 30px, 0); }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
    }
}

/* ==========================================
   SPOTLIGHT & FEATURES SECTIONS STYLING
   ========================================== */

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.section-header .section-title {
    font-size: clamp(2rem, 4vw, 2.6rem);
    color: var(--text-primary);
    margin-bottom: 12px;
    display: inline-block;
    position: relative;
}

.section-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-blue);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    max-width: 650px;
    margin: 15px auto 0;
    line-height: 1.6;
}

/* --- Spotlight Section --- */
.spotlight-section {
    padding: 30px 10% 80px;
    position: relative;
    z-index: 2;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.spotlight-card {
    position: relative;
    height: 430px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    box-shadow: 0 12px 35px var(--shadow-color);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s, box-shadow 0.4s;
    background: #161b22;
}

[data-theme="light"] .spotlight-card {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.spotlight-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Card Overlay */
.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 17, 23, 0.98) 0%, rgba(13, 17, 23, 0.65) 45%, rgba(13, 17, 23, 0) 80%);
    z-index: 2;
    transition: background 0.3s ease;
}

[data-theme="light"] .spotlight-card::before {
    background: linear-gradient(to top, rgba(248, 250, 252, 0.98) 0%, rgba(248, 250, 252, 0.65) 45%, rgba(248, 250, 252, 0) 80%);
}

.spotlight-content {
    position: relative;
    z-index: 3;
    padding: 30px;
    background: linear-gradient(to top, rgba(22, 27, 34, 0.95) 0%, rgba(22, 27, 34, 0.8) 70%, rgba(22, 27, 34, 0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

[data-theme="light"] .spotlight-content {
    background: linear-gradient(to top, rgba(248, 250, 252, 0.98) 0%, rgba(248, 250, 252, 0.85) 70%, rgba(248, 250, 252, 0) 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.spotlight-tag {
    display: inline-block;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 8px;
    letter-spacing: 1.5px;
}

.spotlight-card-title {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.spotlight-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.spotlight-btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
    transition: color 0.3s;
}

.spotlight-btn-text i {
    transition: transform 0.3s ease;
}

/* Card Hover States */
.spotlight-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 15px 40px rgba(0, 84, 166, 0.35);
}

.spotlight-card:hover .spotlight-bg {
    transform: scale(1.08);
}

.spotlight-card:hover .spotlight-btn-text {
    color: var(--text-primary);
}

.spotlight-card:hover .spotlight-btn-text i {
    transform: translateX(5px);
}


/* --- Why Choose Us Section --- */
.features-section {
    padding: 80px 10%;
    background: rgba(13, 17, 23, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    position: relative;
    z-index: 2;
}

[data-theme="light"] .features-section {
    background: rgba(233, 237, 243, 0.45);
    border-top: 1px solid rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 10px 25px var(--shadow-color);
    transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}

[data-theme="light"] .feature-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    background: rgba(0, 84, 166, 0.1);
    border: 1px solid rgba(0, 84, 166, 0.15);
    color: var(--accent-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease, background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.feature-card h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Feature Hover States */
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 84, 166, 0.3);
    box-shadow: 0 12px 30px rgba(0, 84, 166, 0.15);
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--accent-blue);
    color: #fff;
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 0 15px rgba(0, 84, 166, 0.4);
}


/* --- Responsive Adjustments --- */
@media screen and (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 900px) {
    .spotlight-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .spotlight-section, .features-section {
        padding: 60px 6%;
    }
    
    .section-header {
        margin-bottom: 35px;
    }
    
    .spotlight-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .spotlight-card {
        height: 390px;
    }
    
    .spotlight-content {
        padding: 25px;
    }
}